# from data_pp import Data_Pipei

#BB_URL = 'wss://ws.quickintegration.net/'
BB_URL = 'wss://china.cdncnregions.com/'
# BB_URL = 'wss://ws.quickintegrationbest.net/'
# BB_URL = 'wss://ws.onequickintegration.net/'
# BB_URL = 'wss://ws.cdnintegrations.com/'
# FB_URL = 'https://comwsapi.chengxintech9.com/v1/match/getMatchDetail'
#         'https://sportapi.fastball2.com/v1/match/getMatchDetail'
FB_URL = "https://sportapi.fastball2.com/v1/match/getMatchDetail"
# FB_URL ="https://comwsapi.chengxintech9.com/v1/match/getMatchDetail"
# FB_URL ="https://iapi.ccapykdsd.com/v1/match/getMatchDetail"
FB_URL_L = ["https://iapi.ccapykdsd.com/v1/match/getMatchDetai00",
            "https://comwsapi.chengxintech9.com/v1/match/getMatchDetail",
            "https://sportapi.fastball2.com/v1/match/getMatchDetail",
            'https://comwsapi.chengxintech9.com/v1/match/getMatchDetail']
FB_URL_2 = "https://iapi.ccapykdsd.com/v1/match/getList"  #"https://comwsapi.chengxintech9.com/v1/match/getList"  #"https://comwsapi.chengxintech9.com/v1/match/getList "#"https://sportapi.fastball2.com/v1/match/getList"#"https://comwsapi.chengxintech9.com/v1/match/getList"
USER_AGENT_LIST = [
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.39',
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.67',
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3451.0 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:57.0) Gecko/20100101 Firefox/57.0',
    'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.2999.0 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.70 Safari/537.36',
    'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2',
    'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36 OPR/31.0.1889.174',
    'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322; MS-RTC LM 8; InfoPath.2; Tablet PC 2.0)',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 OPR/55.0.2994.61',
    'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.814.0 Safari/535.1',
    'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; ja-jp) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36',
    'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0; Touch; MASMJS)',
    'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.21 (KHTML, like Gecko) Chrome/19.0.1041.0 Safari/535.21',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4093.3 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko; compatible; Swurl) Chrome/77.0.3865.120 Safari/537.36',
    'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36',
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4086.0 Safari/537.36',
    'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:75.0) Gecko/20100101 Firefox/75.0',
    'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) coc_coc_browser/91.0.146 Chrome/85.0.4183.146 Safari/537.36',
    'Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 VivoBrowser/8.4.72.0 Chrome/62.0.3202.84',
    'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 Edg/87.0.664.60',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:83.0) Gecko/20100101 Firefox/83.0',
    'Mozilla/5.0 (X11; CrOS x86_64 13505.63.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:68.0) Gecko/20100101 Firefox/68.0',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Safari/537.36',
    'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36',
    'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/72.0.3815.400',
    'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Safari/537.36',
    "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 "
    "(KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1",
    "Mozilla/5.0 (X11; CrOS i686 2268.111.0) AppleWebKit/536.11 "
    "(KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11",
    "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 "
    "(KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6",
    "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 "
    "(KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6",
    "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.1 "
    "(KHTML, like Gecko) Chrome/19.77.34.5 Safari/537.1",
    "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 "
    "(KHTML, like Gecko) Chrome/19.0.1084.9 Safari/536.5",
    "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/536.5 "
    "(KHTML, like Gecko) Chrome/19.0.1084.36 Safari/536.5",
    "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.3 "
    "(KHTML, like Gecko) Chrome/19.0.1063.0 Safari/536.3",
    "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.3 "
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/536.3 "
    "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 "
    "(KHTML, like Gecko) Chrome/19.0.1062.0 Safari/536.3",
    "(KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3",
    "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.3 "
    "(KHTML, like Gecko) Chrome/19.0.1061.0 Safari/536.3",
    "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.24 "
    "(KHTML, like Gecko) Chrome/19.0.1055.1 Safari/535.24",
    "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.24 "
]

IP_LIST = ["97.72.128.134",
           "203.150.128.211",
           "165.225.102.50",
           "85.172.39.174",
           "202.75.107.42",
           "36.68.102.5",
           "36.94.48.188",
           "201.208.51.255",
           "222.77.214.185",
           "45.162.244.214",
           "222.95.248.63",
           "58.215.201.98",
           "179.61.229.164",
           "49.231.140.125",
           "195.29.77.114",
           "51.83.155.75",
           "104.129.204.50",
           "51.83.232.94",
           "58.115.241.213",
           "27.64.22.77",
           "50.116.33.101",
           "37.252.73.192",
           "45.174.77.243",
           "20.105.253.176",
           "201.17.17.35",
           "41.65.102.68",
           "49.135.46.213",
           "202.134.144.58",
           "45.178.133.22",
           "183.166.136.127",
           "203.150.113.71",
           "45.7.132.89",
           "41.65.236.52",
           "71.172.1.53",
           "190.186.1.65",
           "43.132.204.207",
           "181.204.163.35",
           "49.48.41.102",
           "165.227.71.60",
           "187.147.112.245",
           "35.186.154.245",
           "27.205.41.218",
           "213.230.127.141",
           "223.16.216.55",
           "183.245.6.33",
           "187.171.32.27",
           "183.166.170.174",
           "45.70.15.6",
           "47.113.190.117",
           "188.120.232.181",
           "45.115.253.97",
           "87.126.166.132",
           "188.94.224.10",
           "183.147.29.17",
           "198.59.147.147",
           "200.39.153.1",
           "18.140.245.12",
           "218.6.106.187",
           "69.43.44.106",
           "45.184.155.7",
           "191.34.123.44",
           "49.233.173.151",
           "51.38.70.95",
           "165.225.94.106",
           "193.34.21.4",
           "41.60.216.191",
           "8.218.98.145",
           "62.99.178.46",
           "36.71.114.177",
           "94.74.132.129",
           "20.81.62.32",
           "36.89.212.251",
           "45.65.135.249",
           "165.225.34.40",
           "36.95.112.65",
           "36.95.189.135",
           "69.165.73.84",
           "185.110.210.193",
           "171.92.20.55",
           "109.201.9.100",
           "183.166.137.134",
           "197.210.217.66",
           "41.184.92.24",
           "162.144.233.16",
           "36.92.159.181",
           "202.142.126.6",
           "67.229.29.109",
           "66.85.30.138",
           "49.49.193.236",
           "201.150.51.30",
           "45.224.153.39",
           "45.64.11.217",
           "41.111.213.190",
           "47.254.120.228",
           "190.43.92.78",
           "200.185.55.121",
           "218.250.146.41",
           "104.129.204.71",
           "213.6.98.169",
           "206.125.47.4",
           "165.225.112.9",
           "49.231.200.212",
           "202.80.231.67",
           "43.133.109.205",
           "36.83.178.231",
           "104.129.198.49",
           "8.217.13.159",
           "213.135.8.178",
           "34.222.15.11",
           "191.28.183.165",
           "165.225.114.81",
           "186.148.163.19",
           "51.161.131.77",
           "47.103.211.201",
           "89.111.105.65",
           "190.160.181.220",
           "36.91.203.101",
           "188.94.231.29",
           "191.241.226.230",
           "34.206.106.206",
           "78.135.87.162",
           "41.220.114.202",
           "200.46.65.66",
           "27.72.139.121",
           "201.57.8.34",
           "41.204.93.54",
           "47.102.158.15",
           "54.38.63.141",
           "203.29.26.241",
           "191.102.251.146",
           "185.82.98.2",
           "156.67.172.185",
           "45.175.160.34",
           "42.200.57.252",
           "201.184.181.67",
           "41.65.255.37",
           "27.214.49.10",
           "54.38.158.165",
           "194.1.247.195",
           "27.192.168.131",
           "41.65.0.214",
           "183.247.199.111",
           "47.243.245.175",
           "36.91.68.148",
           "181.224.162.205",
           "78.138.46.217",
           "36.90.229.178",
           "41.60.216.199",
           "36.238.92.64",
           "185.110.211.221",
           "78.30.198.160",
           "45.152.188.229",
           "192.166.144.250",
           "47.242.67.199",
           "83.151.2.50"
           ]

db_pl = {
    '-0.99': 1.03,
    '-0.98': 1.04,
    '-0.97': 1.05,
    '-0.96': 1.06,
    '-0.95': 1.07,
    '-0.94': 1.08,
    '-0.93': 1.09,
    '-0.92': 1.11,
    '-0.91': 1.12,
    '-0.90': 1.13,
    '-0.89': 1.14,
    '-0.88': 1.16,
    '-0.87': 1.17,
    '-0.86': 1.19,
    '-0.85': 1.20,
    '-0.84': 1.21,
    '-0.83': 1.23,
    '-0.82': 1.25,
    '-0.81': 1.26,
    '-0.80': 1.28,
    '-0.79': 1.29,
    '-0.78': 1.31,
    '-0.77': 1.33,
    '-0.76': 1.35,
    '-0.75': 1.36,
    '-0.74': 1.38,
    '-0.73': 1.40,
    '-0.72': 1.42,
    '-0.71': 1.44,
    '-0.70': 1.47,
    '-0.69': 1.49,
    '-0.68': 1.51,
    '-0.67': 1.53,
    '-0.66': 1.56,
    '-0.65': 1.58,
    '-0.64': 1.61,
    '-0.63': 1.63,
    '-0.62': 1.66,
    '-0.61': 1.69,
    '-0.60': 1.72,
    '-0.59': 1.75,
    '-0.58': 1.78,
    '-0.57': 1.81,
    '-0.56': 1.85,
    '-0.55': 1.88,
    '-0.54': 1.92,
    '-0.53': 1.96,
    '-0.52': 2.00,
    '-0.51': 2.04,
    '-0.50': 2.08,
    '-0.49': 2.12,
    '-0.48': 2.17,
    '-0.47': 2.22,
    '-0.46': 2.27,
    '-0.45': 2.32,
    '-0.44': 2.38,
    '-0.43': 2.43,
    '-0.42': 2.50,
    '-0.41': 2.56,
    '-0.40': 2.63,
    '-0.39': 2.70,
    '-0.38': 2.77,
    '-0.37': 2.85,
    '-0.36': 2.94,
    '-0.35': 3.00,
    '-0.34': 3.12,
    '-0.33': 3.22,
    '-0.32': 3.33,
    '-0.31': 3.44,
    '-0.30': 3.55,
    '-0.29': 3.70,
    '-0.28': 3.80,
    '-0.27': 4.00,
    '-0.26': 4.15,
    '-0.25': 4.30,
    '-0.24': 4.50,
    '-0.23': 4.75,
    '-0.22': 5.00,
    '-0.21': 5.25,
    '-0.20': 5.55,
    '-0.19': 5.85,
    '-0.18': 6.15,
    '-0.17': 6.20,
    '-0.16': 6.25,
    '-0.15': 6.50,
    '-0.14': 7.10,
}
